<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <title>微信jssdk</title>
    <!-- <link rel="dns-prefetch" href="//img.minshengec.com/"> -->
    <!-- <link rel="dns-prefetch" href="//rs.minshengec.com/"> -->
    <link rel="stylesheet" href="css/lib/reset.css">
    <link rel="stylesheet" href="css/wx.css" />
    <script src="js/lib/flexible-163.js"></script>
    <script src="js/lib/jquery-2.2.4.min.js"></script>
    <script src='https://res.wx.qq.com/open/js/jweixin-1.0.0.js'></script>
    <script src="js/wx.js"></script>
</head>

<body ontouchstart>
    <!-- 返回上一页 -->
    <!-- <div class="go-back"><a href="javascript:void(0)" onclick="history.go(-1)"></a></div> -->

    <div class="wrapper">

        <!-- 主体内容部分s -->
        <div class="container">
       		<p>微信登录</p>    
        </div>
    </div>


<script>
$(function () {
	var API = 'https://www.lenmotion.cn/api'
	var URL = encodeURIComponent(window.location.href);
	var HOST = window.location.host;
	var jssdk = {};

	var optionData = { 
		title: '中秋大团圆！', 
		desc: '这是描述文字的测试', 
		// link: process.env.NODE_ENV === 'development' ? hostName + 'dev/' + pathName : hostName + pathName, 
		imgUrl: 'https://yenlai.natappvip.cc/images/share.png' 
	};


	$.ajax({
	  type: 'GET',
	  url: API + '/weixin/getJsApiConfig?url=' + URL,
	  dataType: 'json',
	  success: function (res) {
	  	jssdk = res.data;
	  	share(jssdk, optionData)
	  },
	  error: function (error) {
	    throw new Error(error)
	  }
	})


	
   

});
</script>

</body>

</html>
